﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<ShareB.Models.PublicationModel>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ViewAllMyPub
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>ViewAllMyPub</h2>

    <fieldset>
            <legend>My publication</legend>
        
        <table>
            <% foreach (var item in Model) 
               { %>
               <tr><th>VIEW</th><th>EDIT</th></tr>
               <tr>
               <td>
                    <div class="editor-field">
                        <%: Html.ActionLink(item.Tittle, "ViewMyPub", new { id = item.PublicationID })%>
                    </div>
               </td>
               <td>
                    <%: Html.ActionLink("Edit Publication", "EditPublication", new { id = item.PublicationID })%>
               </td>
               </tr>

                <%: Html.HiddenFor(model => item)%>
            <% } %>
       </table>
    </fieldset>

    <p></p>
    <p>
        <%: Html.ActionLink("Back to List", "Index") %>
    </p>

</asp:Content>

